/****************** Exercise 5 ******************
 * Modify Exercise 4 so the values
 * of the data in DataOnly are assigned to and
 * printed in main().
 ************************************************/


package thinkinginjava.everything_is_an_object;

/**
 *
 * @author vlad
 */
public class Exercise5 {
    public static void main(String[] args){
        DataOnly data = new DataOnly();
        System.out.println("DataOnly instance is created");
        data.i = 1;
        data.d = 2.0;
        data.b = true;
        System.out.println("data.i = " + data.i);
        System.out.println("data.d = " + data.d);
        System.out.println("data.b = " + data.b);
    }
}
